<?php
namespace app\api\validate;
use think\Validate;
class AccountCreate extends Validate
{
    protected $rule = [
        'GoodId'  =>  'require',
        'GoodName'  =>  'require',
        'BatchCode'  =>  'require',
        'AccountTime'  =>  'require',
        'Quantity'  =>  'require',
        'BoxBatchCode'  =>  'require',
        'BoxType'  =>  'require',
        'BoxCount'  =>  'require',
        'CreateMachineCode'  =>  'require',
    ];

    protected $message = [
        'GoodId.require'  =>  '请选择危废代码',
        'GoodName.require'  =>  '请输入危废名称',
        'BatchCode.require'  =>  '批次编码不能为空',
        'AccountTime.require'  =>  '请选择产生台账时间',
        'Quantity.require'  =>  '请填写产生量',
        'BoxBatchCode.require'  =>  '包装容器编码不能为空',
        'BoxType.require'  =>  '包装类型不能为空',
        'BoxCount.require'  =>  '请填写包装数量',
        'CreateMachineCode.require'  =>  '请填写产生危废设施编码',
    ];

}
